/*================================================================
*   File Name：server.c
*   Mail: a1277992967@163.com 
*   blog: http://www.ycst.club/suggest/ 
*   Author：ycst
*   Created Time：2022年08月15日 星期一 10时23分20秒
*   Describe：
*
================================================================*/

#include "../include/server.h"
#include "../include/public.h"
#include "../include/fd_list.h"
#include "../include/db.h"

struct sockaddr_in sock_server;
struct sockaddr_in sock_client;

int main(int argc, char* argv[]){
	char ip[40]="";
    char send_buf[100]="";
    char recv_buf[100]="";
    int  cfd_list[50] = {0};
    int res;
    int on = 1, i = 0;
    fd_set readfd;
    
    int sLen = sizeof(sock_server);
    int cLen = sizeof(sock_client);

	int cfd;
	int sfd = InitNet();
	InitMysql();
	AcceptClient(sfd);
	//CloseMySql();
	return 0;
}












